package com.zxl.controller;

import com.zxl.service.DaDevFlowLinkService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.io.IOException;

@RequestMapping("/da/dev/flow/link")
@RestController
@Slf4j
public class DaDevFlowLinkController {
    @Resource
    private DaDevFlowLinkService daDevFlowLinkService;

    @GetMapping("/cycle/{flowId}")
    public Boolean checkHasCycle(@PathVariable("flowId") Integer flowId){
        return daDevFlowLinkService.checkHasCycle(flowId);
    }


}
